

wget -O /tmp/helm-v2.13.1-linux-amd64.tar.gz -c http://ms-source.oss-cn-shanghai.aliyuncs.com/helm/v2.13.1/helm-v2.13.1-linux-amd64.tar.gz
tar -zvxf /tmp/helm-v2.13.1-linux-amd64.tar.gz -C /tmp/
mv /tmp/linux-amd64/helm /usr/local/bin/

kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

helm init -i=registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.13.1 --stable-repo-url=https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'

kubectl create clusterrolebinding system:anonymous   --clusterrole=cluster-admin   --user=system:anonymous





